home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsISOAPPropertyBagMutator.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  130 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISOAPPropertyBagMutator.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISOAPPropertyBagMutator_h__
  6. #define __gen_nsISOAPPropertyBagMutator_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIPropertyBag; /* forward declaration */
  18.  
  19. class nsIVariant; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsISOAPPropertyBagMutator */
  23. #define NS_ISOAPPROPERTYBAGMUTATOR_IID_STR "f34cb3c8-1dd1-11b2-8a18-a93a99d92c08"
  24.  
  25. #define NS_ISOAPPROPERTYBAGMUTATOR_IID \
  26.   {0xf34cb3c8, 0x1dd1, 0x11b2, \
  27.     { 0x8a, 0x18, 0xa9, 0x3a, 0x99, 0xd9, 0x2c, 0x08 }}
  28.  
  29. /**
  30.  * This permits construction by native or
  31.  * script code a property bag that is also
  32.  * usable by other xpconnect systems.
  33.  */
  34. class NS_NO_VTABLE nsISOAPPropertyBagMutator : public nsISupports {
  35.  public: 
  36.  
  37.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOAPPROPERTYBAGMUTATOR_IID)
  38.  
  39.   /**
  40.    * The property bag that is being constructed.
  41.    * After the mutator is destroyed, this is
  42.    * read-only.  This will never be null.
  43.    */
  44.   /* readonly attribute nsIPropertyBag propertyBag; */
  45.   NS_IMETHOD GetPropertyBag(nsIPropertyBag * *aPropertyBag) = 0;
  46.  
  47.   /**
  48.    * Add or replace a property to the 
  49.    * newly-constructed property bag.
  50.    *
  51.    * @param aName The name of the property.
  52.    *
  53.    * @param aValue The value of the property.
  54.    */
  55.   /* void addProperty (in AString aName, in nsIVariant aValue); */
  56.   NS_IMETHOD AddProperty(const nsAString & aName, nsIVariant *aValue) = 0;
  57.  
  58. };
  59.  
  60. /* Use this macro when declaring classes that implement this interface. */
  61. #define NS_DECL_NSISOAPPROPERTYBAGMUTATOR \
  62.   NS_IMETHOD GetPropertyBag(nsIPropertyBag * *aPropertyBag); \
  63.   NS_IMETHOD AddProperty(const nsAString & aName, nsIVariant *aValue); 
  64.  
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  66. #define NS_FORWARD_NSISOAPPROPERTYBAGMUTATOR(_to) \
  67.   NS_IMETHOD GetPropertyBag(nsIPropertyBag * *aPropertyBag) { return _to GetPropertyBag(aPropertyBag); } \
  68.   NS_IMETHOD AddProperty(const nsAString & aName, nsIVariant *aValue) { return _to AddProperty(aName, aValue); } 
  69.  
  70. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  71. #define NS_FORWARD_SAFE_NSISOAPPROPERTYBAGMUTATOR(_to) \
  72.   NS_IMETHOD GetPropertyBag(nsIPropertyBag * *aPropertyBag) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyBag(aPropertyBag); } \
  73.   NS_IMETHOD AddProperty(const nsAString & aName, nsIVariant *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddProperty(aName, aValue); } 
  74.  
  75. #if 0
  76. /* Use the code below as a template for the implementation class for this interface. */
  77.  
  78. /* Header file */
  79. class nsSOAPPropertyBagMutator : public nsISOAPPropertyBagMutator
  80. {
  81. public:
  82.   NS_DECL_ISUPPORTS
  83.   NS_DECL_NSISOAPPROPERTYBAGMUTATOR
  84.  
  85.   nsSOAPPropertyBagMutator();
  86.  
  87. private:
  88.   ~nsSOAPPropertyBagMutator();
  89.  
  90. protected:
  91.   /* additional members */
  92. };
  93.  
  94. /* Implementation file */
  95. NS_IMPL_ISUPPORTS1(nsSOAPPropertyBagMutator, nsISOAPPropertyBagMutator)
  96.  
  97. nsSOAPPropertyBagMutator::nsSOAPPropertyBagMutator()
  98. {
  99.   /* member initializers and constructor code */
  100. }
  101.  
  102. nsSOAPPropertyBagMutator::~nsSOAPPropertyBagMutator()
  103. {
  104.   /* destructor code */
  105. }
  106.  
  107. /* readonly attribute nsIPropertyBag propertyBag; */
  108. NS_IMETHODIMP nsSOAPPropertyBagMutator::GetPropertyBag(nsIPropertyBag * *aPropertyBag)
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112.  
  113. /* void addProperty (in AString aName, in nsIVariant aValue); */
  114. NS_IMETHODIMP nsSOAPPropertyBagMutator::AddProperty(const nsAString & aName, nsIVariant *aValue)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* End of implementation class template. */
  120. #endif
  121.  
  122. #define NS_SOAPPROPERTYBAGMUTATOR_CID               \
  123. { /* c63d2762-1dd1-11b2-b028-8f244edaa8a1 */        \
  124.   0xc63d2762, 0x1dd1, 0x11b2,                       \
  125.  {0xb0, 0x28, 0x8f, 0x24, 0x4e, 0xda, 0xa8, 0xa1} }
  126. #define NS_SOAPPROPERTYBAGMUTATOR_CONTRACTID \
  127. "@mozilla.org/xmlextras/soap/propertybagmutator;1"
  128.  
  129. #endif /* __gen_nsISOAPPropertyBagMutator_h__ */
  130.